package nxu.it.movieapi.service.mapper;

import nxu.it.api.model.Cast;
import nxu.it.api.model.Filmography;
import nxu.it.movieapi.Doc.CastDoc;
import nxu.it.movieapi.Doc.FilmographyDoc;
import org.mapstruct.Mapper;
import org.mapstruct.MappingConstants;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = MappingConstants.ComponentModel.SPRING)
public interface CastMapper {
    CastMapper INSTANCE = Mappers.getMapper(CastMapper.class);

    Cast fromDoc(CastDoc castDoc);
    List<Cast> fromDocList(List<CastDoc> castDocList);

    Filmography fromFilmographyDoc(CastDoc filmographyDoc);
    List<Filmography> fromFilmographyDocList(List<FilmographyDoc> filmographyDocList);
}
